import Vue from 'vue'
import VueRouter from 'vue-router'
// import Cart from '../views/cart/Cart.vue'
// import Category from '../views/category/Category.vue'
// import Profile from '../views/profile/Profile.vue'
const Home = () =>
    import ('../views/home/Home.vue')
const Cart = () =>
    import ('../views/cart/Cart.vue')
const Category = () =>
    import ('../views/category/Category.vue')
const Profile = () =>
    import ('../views/profile/Profile.vue')
Vue.use(VueRouter)
const routes = [{
    path: '',
    redirect: '/home'
}, {
    path: '/home',
    component: Home
}, {
    path: '/cart',
    component: Cart
}, {
    path: '/category',
    component: Category
}, {
    path: '/profile',
    component: Profile
}]
const router = new VueRouter({
    routes,
    mode: 'history'
})
export default router